import Fetch from '@/request/http';

// 查询库款预警数据
export const treasuryQuery = (data) => {
    return Fetch({
        method: 'POST',
        url: `/grp/bgtex/treasury/query`,
        data,
    });
};

// 预测数预警/发生数预警主查询，查询报告
export const reportQuery = (data) => {
    return Fetch({
        method: 'POST',
        url: `/grp/bgtex/treasury/portrait/report/query`,
        data,
    });
};
// 重新生成报告
export const generateQuery = (data) => {
    return Fetch({
        method: 'POST',
        url: `/grp/bgtex/treasury/portrait/report/generate`,
        data,
    });
};
// 预测数预警修改确认数
export const modifyCorrAmt = (data,params) => {
    return Fetch({
        method: 'POST',
        url: `/grp/bgtex/treasury/portrait/report/revise`,
        data,
        params
    });
};
// 发生数预警查询预警日期
export const warningDateQuery = (params) => {
    return Fetch({
        method: 'GET',
        url: `grp/bgtex/treasury/portrait/report/date/tree`,
        params
    });
};
// 全省资金预警，主查询
export const provinceWarningQuery = (params) => {
    return Fetch({
        method: 'GET',
        url: `grp/bgtex/treasury/portrait/difference/report`,
        params
    });
};